def calculate_statistics():
    """统计班级成绩"""
    students = load_data()
    if not students:
        print("暂无数据")
        return

    # 计算统计值
    math_scores = [s["数学"] for s in students]
    chinese_scores = [s["语文"] for s in students]
    english_scores = [s["英语"] for s in students]

    stats = {
        "数学平均分": sum(math_scores) / len(math_scores),
        "语文最高分": max(chinese_scores),
        "英语最低分": min(english_scores)
    }

    print("=== 班级统计 ===")
    for k, v in stats.items():
        print(f"{k}: {v:.1f}")